Package-level declarations

Functions

Link copied to clipboard
Link copied to clipboard

Blocks until the session reaches a terminal state (Finished, Error, or Idle). Returns 0 for Finished, 1 for Error, 2 for Idle (stopped externally).

Link copied to clipboard
fun macos_playback_session_load(sessionPtr: COpaquePointer, formatDataSize: Int, formatDataPtr: CArrayPointer<ByteVar>, audioDataSize: Int, audioDataPtr: CArrayPointer<ByteVar>)

Load audio data into the playback session.

Link copied to clipboard

Start playback. State transitions are managed by the JVM caller; use macos_playback_session_await_completion to block until a terminal state.

Link copied to clipboard

Dispose StableRef when you're fully done with the session.

Link copied to clipboard

Pause an active recording. Capture halts but the AudioQueue + buffers stay allocated so macos_recording_session_resume is cheap and the previously captured chunks remain in the session's hot flow.

Link copied to clipboard

Dispose StableRef when you're fully done with the session (after stop/reset).

Link copied to clipboard

Resume a previously paused recording.

Link copied to clipboard

Start recording and stream updates to the provided callbacks.